from pydantic import BaseModel
from typing import Optional
from datetime import datetime

class DepartmentInfo(BaseModel):
    id: int
    name: str
    description: Optional[str] = None
    created_at: datetime

class DepartmentCreate(BaseModel):
    name: str
    description: Optional[str] = None

class DepartmentUpdate(BaseModel):
    name: Optional[str] = None
    description: Optional[str] = None